<?php

namespace app\controller;

use app\model\BookIntroBookRealBookTypeMidTypeModel;
use think\facade\Db;
use think\annotation\route;

class BookIntroBookRealBookTypeMidTypeController
{

    /**
     * @route ("getBookIntroBookRealBookTypeMidTypeController")
     * @return \think\response\Json
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     * @throws \think\db\exception\ModelNotFoundException
     */
    public function getBookIntroBookRealBookTypeMidTypeController($libraryId, BookIntroBookRealBookTypeMidTypeModel  $bm)
    {
        return $bm->getBookIntroBookRealBookTypeMidTypeController($libraryId);
    }

    /**
     * @route ("userGetBookIntroBookRealBookTypeMidTypeController")
     * @return \think\response\Json
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     * @throws \think\db\exception\ModelNotFoundException
     */
    public function userGetBookIntroBookRealBookTypeMidTypeController(BookIntroBookRealBookTypeMidTypeModel  $bm)
    {
        return json($bm::select());
    }
}